﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucListProductCategory.ascx.cs"
    Inherits="SES.CMS.AdminCP.PageUC.ucListProductCategory" %>
<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dxwtl" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<h2>
    Danh sách loại sản phẩm</h2>
<div>
    <dxwtl:ASPxTreeList ID="tlCategory" runat="server" AutoGenerateColumns="False" Width="100%"
        ClientInstanceName="tlCategory" KeyFieldName="LoaiSanPhamID" ParentFieldName="ParentID"
        EnableCallbacks="False" OnNodeDeleted="tlCategory_NodeDeleted" OnStartNodeEditing="tlCategory_StartNodeEditing">
        <SettingsPager Mode="ShowPager" PageSize="20">
            <AllButton Text="Tất cả">
            </AllButton>
            <NextPageButton Text="Tiếp theo &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Trước">
            </PrevPageButton>
        </SettingsPager>
        <SettingsBehavior AllowFocusedNode="True" />
        <SettingsPager ShowDefaultImages="False">
            <AllButton Text="Tất cả">
            </AllButton>
            <NextPageButton Text="Tiếp theo &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Trước">
            </PrevPageButton>
        </SettingsPager>
        <Columns>
            <dxwtl:TreeListTextColumn FieldName="LoaiSanPhamID" Name="clLoaiSanPhamID" Visible="False"
                VisibleIndex="0">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListTextColumn Caption="Tên loại sản phẩm" Width="70%" Name="clTenLoaiSanPham"
                VisibleIndex="0" FieldName="TenLoaiSanPham">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListTextColumn Caption="Thuộc menu cấp II" Width="10%" FieldName="IsPublish"
                Name="clIsHomePage" VisibleIndex="1">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListTextColumn Caption="Thuộc Mainmenu" Width="10%" FieldName="IsMainMenu"
                Name="clIsPublish" VisibleIndex="2">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListTextColumn Caption="Thứ tự" Width="10%" FieldName="OrderID" Name="clOrderID"
                VisibleIndex="3">
            </dxwtl:TreeListTextColumn>
            <dxwtl:TreeListCommandColumn Caption="Sửa" VisibleIndex="4">
                <EditButton Text="Sửa" Visible="True">
                </EditButton>
            </dxwtl:TreeListCommandColumn>
        </Columns>
    </dxwtl:ASPxTreeList>
    <hr />
    <asp:LinkButton runat="server" ID="lbtnAdd" Text="Thêm mới" OnClick="lbtnAdd_Click" CssClass="awesome-button awe-add"></asp:LinkButton>
</div>
